package com.obst.tracenote.adapter;

import java.util.ArrayList;

import com.obst.tracenote.data.ListData;
import com.obst.tracenote.util.ImageLoader;

import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.view.Window;
import android.widget.ArrayAdapter;

public class CommonAdapter extends ArrayAdapter<ListData> {
	protected ArrayList<ListData> mDataList;
	protected Context pContext;
	protected ImageLoader mImgLoader = new ImageLoader();
	protected Dialog imgDialog;
	public CommonAdapter(Context context, int textViewResourceId, ArrayList<ListData> items) {
		super(context, textViewResourceId, items);
		pContext = context;		
		this.mDataList = items;
		imgDialog = new Dialog(pContext);
		imgDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
		imgDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));		
	}
	public void setData(ArrayList<ListData> data) {
		this.mDataList = data;
	}

}
